<!-- JS -->
<script setup>
//引入
import {ref} from 'vue';
//定义数据模型-响应式变量
const count =ref(0);
//定义函数
function innt(){
  count.value++;
}
</script>
<!-- HTML -->
<template>
  <button @click="innt">{{ count }}</button>:{{ count }}
</template>
<!-- CSS -->
<style scoped>
</style>